<extend name="Template:main/content" />
<block name="page-content-wrapper-content">
<form class="form-horizontal" method="post" action="__CONTROLLER__/batch_summary_list" name="basic_validate" id="basic_validate" novalidate="novalidate">

	<table class="table table-bordered table-striped with-check">
		<thead>
			<tr>
				<th>
					<input type="checkbox" id="title-table-checkbox" name="title-table-checkbox" />
				</th>
				<th width="30px">序号</th>
				<th >申请代理</th>
				<th >申请时间</th>
				<th>提款金额</th>
				<th >开户行</th>
				<th >开户名</th>
				<th >银行卡号</th>
				<th >审核时间</th>
				<th >提款进度</th>
					<th width="170px">操作</th>
			</tr>
		</thead>
		<tbody>
			<volist name="list" id="v">
				<tr>
					<td><input type="checkbox" name=checkboxes[] value={$v.drawings_id} /></td>
					<td>
						<div class="numerical">
							{$key+1}
						</div>
					</td>
					<th >{$v.agent_info.username}</th>
					<th >{$v.created|date="Y-m-d H:i:s",###}</th>
					<td>{$v.money}</td>
					<td>{$v.bank_name}</td>
					<td>{$v.account_username}</td>
					<td>{$v.account}</td>
					<if condition="$v.review_time eq 0">
					<th >审核中</th>
					<else /><th >{$v.review_time|date="Y-m-d H:i:s",###}</th>
					</if>
					<if condition="$v.status eq 1">
					<th><span style="color:blue">审核中</span></th>
					<td class="center"><a class="btn btn-primary" href="__CONTROLLER__/batch_summary?id={$v.drawings_id}" form-type='content' onClick="return confirm('确定审核通过?');">审核通过</a></td>
					<elseif condition="$v.status eq 2"/>
					<th><span style="color:blue">审核通过，待打款</span></th>
					<td class="center"><a class="btn btn-success" href="__CONTROLLER__/remit_success?id={$v.drawings_id}" form-type='content' onClick="return confirm('确定提款成功?');">提款成功</a>
					<a class="btn btn-info" href="__CONTROLLER__/remit_fail?id={$v.drawings_id}" form-type='content' onClick="return confirm('确定提款失败?');">提款失败</a></td>
					<elseif condition="$v.status eq 3"/>
					<th><span style="color:green">提款成功</span></th>
					<th><span style="color:green">操作完成</span></th>
					<elseif condition="$v.status eq 4"/>
					<th><span style="color:red">提款失败</span></th>
					<td class="center">
					<input type="hidden" id="drawings_back_id" value="{$item.drawings_id}">
					<a class="btn btn-info" href="__CONTROLLER__/back_to_account?id={$v.drawings_id}" form-type='content' onClick="return confirm('确定退回余额?');">退回余额</a></td>
					<elseif condition="$v.status eq 5"/>
					<th><span style="color:red">已退回余额</span></th>
						<th><span style="color:green">操作完成</span></th>
					<else />异常
					</if>
				</tr>
			</volist>
			<tr>
					<td>/</td>
					<td>/</td>
					<th >/</th>
					<th style="color:green;font-size:20px;">所有页面数据合计:</th>
					<th style="color:green;font-size:20px;" >{$statistics}</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
					<th >/</th>
				</tr>
		</tbody>
	</table>
	
	<div id="myAlert-bean" class="modal hide" aria-hidden="true" style="display: none;">
		<div class="modal-header">
			<button data-dismiss="modal" class="close" type="button">×</button>
			<h3>删除</h3>
		</div>
		<div class="modal-body">
			<p>内容删除之后将不能够恢复，确定要做删除吗？</p>
		</div>
		<div class="modal-footer"> <a data-dismiss="modal" class="btn btn-primary data-del-bean-alert" href="__CONTROLLER__/foreverdelete">确定</a>
			<a data-dismiss="modal" class="btn" href="#">取消</a> </div>
	</div>
	<if condition="$v['status'] eq 1 ">
<div>
<button type="submit" class="btn btn-success" form-type="form-content" >批量审核通过</button>
</if>
</form>
	<!-- page -->
	<include file="Template:main/page" />
</block>